
<!-- saved from url=(0056)http://www.mnlab.cs.depaul.edu/projects/SPA/tutorial.htm -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Language" content="en-us">

<title>Tutorial</title>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta name="Microsoft Theme" content="edge 0111, default">
<meta name="Microsoft Border" content="tb, default">
</head>

<body background="./Tutorial_files/edgbkgnd.gif" bgcolor="#FFFFFF" text="#000000" link="#009933" vlink="#996633" alink="#666699"><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td><!--mstheme--><font face="georgia,times new roman,times">

<p align="center"><font size="6"><strong>
<img src="./Tutorial_files/tutorial.htm_cmp_edge110_bnr.gif" width="600" height="60" border="0" alt="Tutorial"></strong></font><br>
<script language="JavaScript"><!--
MSFPhover = 
  (((navigator.appName == "Netscape") && 
  (parseInt(navigator.appVersion) >= 3 )) || 
  ((navigator.appName == "Microsoft Internet Explorer") && 
  (parseInt(navigator.appVersion) >= 4 ))); 
function MSFPpreload(img) 
{
  var a=new Image(); a.src=img; return a; 
}
// --></script><script language="JavaScript"><!--
if(MSFPhover) { MSFPnav1n=MSFPpreload("_derived/home_cmp_edge110_hbtn.gif"); MSFPnav1h=MSFPpreload("_derived/home_cmp_edge110_hbtn_a.gif"); }
// --></script><a href="http://www.mnlab.cs.depaul.edu/projects/SPA/index.htm" language="JavaScript" onmouseover="if(MSFPhover) document[&#39;MSFPnav1&#39;].src=MSFPnav1h.src" onmouseout="if(MSFPhover) document[&#39;MSFPnav1&#39;].src=MSFPnav1n.src"><img src="./Tutorial_files/home_cmp_edge110_hbtn.gif" width="140" height="34" border="0" alt="Home" align="middle" name="MSFPnav1"></a> <img src="./Tutorial_files/tutorial.htm_cmp_edge110_hbtn_p.gif" width="140" height="34" border="0" alt="Tutorial" align="middle"> <script language="JavaScript"><!--
if(MSFPhover) { MSFPnav2n=MSFPpreload("_derived/publications.htm_cmp_edge110_hbtn.gif"); MSFPnav2h=MSFPpreload("_derived/publications.htm_cmp_edge110_hbtn_a.gif"); }
// --></script><a href="http://www.mnlab.cs.depaul.edu/projects/SPA/publications.htm" language="JavaScript" onmouseover="if(MSFPhover) document[&#39;MSFPnav2&#39;].src=MSFPnav2h.src" onmouseout="if(MSFPhover) document[&#39;MSFPnav2&#39;].src=MSFPnav2n.src"><img src="./Tutorial_files/publications.htm_cmp_edge110_hbtn.gif" width="140" height="34" border="0" alt="Publications" align="middle" name="MSFPnav2"></a> <script language="JavaScript"><!--
if(MSFPhover) { MSFPnav3n=MSFPpreload("_derived/download.htm_cmp_edge110_hbtn.gif"); MSFPnav3h=MSFPpreload("_derived/download.htm_cmp_edge110_hbtn_a.gif"); }
// --></script><a href="http://www.mnlab.cs.depaul.edu/projects/SPA/download.htm" language="JavaScript" onmouseover="if(MSFPhover) document[&#39;MSFPnav3&#39;].src=MSFPnav3h.src" onmouseout="if(MSFPhover) document[&#39;MSFPnav3&#39;].src=MSFPnav3n.src"><img src="./Tutorial_files/download.htm_cmp_edge110_hbtn.gif" width="140" height="34" border="0" alt="Download" align="middle" name="MSFPnav3"></a></p>
<p align="center">&nbsp;</p>

<!--mstheme--></font></td></tr><!--msnavigation--></tbody></table><!--msnavigation--><table dir="ltr" border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><!--msnavigation--><td valign="top"><!--mstheme--><font face="georgia,times new roman,times">
<ol>
  <li>Prepare your firewall policy in a text file such that each rule is written 
  on a separate line. The rule format must be as follows (see sample policy file 
  policy.txt):</li>
  <p align="left">&lt;rule&gt; := &lt;protocol&gt;, &lt;source-address&gt;, &lt;source-port&gt;, 
  &lt;destination-address&gt;, &lt;destination-port&gt;, &lt;action&gt;<br>
  &lt;protocol&gt; := &lt;tcp | udp&gt;<br>
  &lt;address&gt; := &lt;byte&gt;.&lt;byte&gt;.&lt;byte&gt;.&lt;byte&gt;/&lt;host-bits&gt;<br>
  &lt;byte&gt; := &lt;0-255&gt;<br>
  &lt;host-bits&gt; := &lt;0-32&gt;<br>
  &lt;port&gt; := &lt;0-65535&gt;<br>
  &lt;action&gt; := &lt;accept | deny&gt;</p>
&nbsp;
  <li>Run the <i>PolicyVisor</i> using the command line:<p>java -jar PolicyVisor.jar</p>
  &nbsp;</li>
  <li>Click the &lt;Load&gt; button and select the policy file.<br>
  <p>&nbsp;</p></li>
  <li>The <i>PolicyVisor</i> automatically loads the firewall policy and 
  performs the anomaly analysis. The result of the analysis is displayed on the 
  program window as follows:<br>
  <br>
  <img border="0" src="./Tutorial_files/tutori2.jpg" width="797" height="625"></li>
</ol>

<!--mstheme--></font><!--msnavigation--></td></tr><!--msnavigation--></tbody></table><!--msnavigation--><table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td><!--mstheme--><font face="georgia,times new roman,times">
<p align="center">&nbsp;</p>
<!--msthemeseparator--><p align="center"><img src="./Tutorial_files/aedgrule.gif" width="600" height="10" alt="horizontal rule"></p>
<p align="center">
<nobr><a href="http://www.mnlab.cs.depaul.edu/projects/SPA/index.htm" target="" style="{text-decoration: none;}">Home</a></nobr>&nbsp;•&nbsp;<nobr>Tutorial</nobr>&nbsp;•&nbsp;<nobr><a href="http://www.mnlab.cs.depaul.edu/projects/SPA/publications.htm" target="" style="{text-decoration: none;}">Publications</a></nobr>&nbsp;•&nbsp;<nobr><a href="http://www.mnlab.cs.depaul.edu/projects/SPA/download.htm" target="" style="{text-decoration: none;}">Download</a></nobr></p>
<p align="center"><font size="1">Copyright � 2002-2005 Ehab Al-Shaer and Hazem 
Hamed, DePaul University.</font></p>

<!--mstheme--></font></td></tr><!--msnavigation--></tbody></table>

</body></html>